Release 10.1A: OpenEdge Development:
Messaging and ESB


messageHandler procedure

Handles incoming JMS and error messages.

Syntax

PROCEDURE messageHandler. 
DEFINE INPUT PARAMETER message AS HANDLE.       
DEFINE INPUT PARAMETER messageConsumer AS HANDLE.  
DEFINE OUTPUT PARAMETER reply AS HANDLE. 

Parameters

message

The message.

messageConsumer

The Message Consumer object that contains this message handler. The application can use the Message Consumer object to get context information about the message (for example, the session handle to the session that received that message) and the context (for example, the session handler).

reply

A handle to the reply message, if any. The application can reply to the message automatically without having to extract the reply to fields. The application can set the reply parameter with a reply message, which is automatically sent to the JMSReplyTo destination of the message. If the setReplyAutoDelete procedure(true) Message Consumer procedure is called, the reply message is automatically deleted after being sent.

Applies to

Message objects

Notes

See also

createMessageConsumer procedure, deleteConsumer procedure, messageHandler procedure, waitForMessages procedure

For more information see the "Message Consumer objects" section, the "Consuming messages" section, the "Terminating the Message Consumer object" section and the "Creating a message handler process" section.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095